export const mixin = {
    data() {
        return {
            guideId: "2110"
        }
    }
}

export const FootList = [
    { path: 'movie', name: 'movie', text: "电影", icon: "icon-dianying" },
    { path: 'cinema', name: 'cinema', text: "影院", icon: "icon-cinema" },
    { path: 'shop', name: 'shop', text: "商城", icon: "icon-shangpin", hot: true },
    { path: 'news', name: 'news', text: "资讯", icon: "icon-zixun2" },
    { path: 'mine', name: 'mine', text: "我的", icon: "icon-custom-my" },
]


// 防抖 
/**
* @desc 函数防抖
* @param func 目标函数
* @param wait 延迟执行毫秒数
*/
export function debounce(func, wait) {
    let timeout = null
    return function () {
        let context = this
        let args = arguments
        if (timeout) clearTimeout(timeout)
        timeout = setTimeout(() => {
            func.apply(context, args)
        }, wait)
    }
}
